import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'repositories/todo_repository.dart';
import 'services/todo_service.dart';
import 'vm/home_vm.dart';

final todoRepositoryProvider = Provider<TodoRepository>((ref) => MockTodoRepository());
final todoServiceProvider = Provider<TodoService>((ref) => TodoService(ref.read(todoRepositoryProvider)));
final homeVmProvider = StateNotifierProvider<HomeVM, HomeState>((ref) => HomeVM(ref.read(todoServiceProvider)));